package com.pano.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pano.dao.ImgDao;
import com.pano.dao.SceneDao;
import com.pano.entity.Img;
import com.pano.entity.Scene;
import com.pano.service.SceneService;

@Service
public class SceneServiceImpl implements SceneService {

	@Autowired
	private SceneDao sceneDao;

	@Autowired
	private ImgDao imgDao;

	@Override
	@Transactional
	public void save(Scene scene, Img img) {
		sceneDao.save(scene);
		imgDao.save(img);
	}

	@Override
	public List<Scene> findByVpoiid(int vpoiid) {
		return sceneDao.findByVpoiid(vpoiid);
	}

}
